package com.test.kotlin06

data class Coordinate(var x:Int,var y:Int){//数据类 data class
    var isInbounds = x>0 && y>0
}

fun main() {
    println(Coordinate(10,20))

    println(Coordinate(10,20) == Coordinate(10,20))// == equal     ===比较引用
}